<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>网上申报</title>
<link href="__PUBLIC__/Css/validform/Validform.css" rel="stylesheet" />
<link rel="stylesheet" href="__PUBLIC__/Css/public.css" />
<link rel="stylesheet" href="__PUBLIC__/Css/index.css" />
<script type="text/javascript" src="__PUBLIC__/Js/city.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/date.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/jquery.form.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/Validform.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/jBox/jquery.jBox-2.3.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/jBox/jquery.jBox-zh-CN.js"></script>
<link type="text/css" rel="stylesheet" href="__PUBLIC__/Js/jBox/Skins2/Blue/jbox.css"/>
<script type="text/javascript">
var obj;
$(function(){
	$(".insertForm").Validform({
		tiptype:function(msg,o,cssctl){
			var objtip=$("#info");
			cssctl(objtip,o.type);
			objtip.text(msg);
			},
			postonce:true
		});
	$('#uploadform').ajaxForm({
		beforeSubmit:  checkForm,  // pre-submit callback
		success:       complete,  // post-submit callback
		dataType: 'json'
	});
	function checkForm(){
		//可以在此添加其它判断
	}
	function complete(data){
		$("#uploaddiv").hide();
		if (data.status==1){
			data = data.data;
			$(obj).val(data);
		}else{
			$('#result').html(data.info).show();
		}
	}
	$("#grjb").click(function(){
		$("#xmj,#zzj").hide();
		$("#grj").show();
		$(this).children().addClass("tab_up_l_h").removeClass("tab_up_l");
		$(this).children().children().addClass("tab_up_r_h").removeClass("tab_up_r");
		$(this).siblings().children().addClass("tab_up_l").removeClass("tab_up_l_h");
		$(this).siblings().children().children().addClass("tab_up_r").removeClass("tab_up_r_h");
	});
	$("#xmjb").click(function(){
		$("#grj,#zzj").hide();
		$("#xmj").show();
		$(this).children().addClass("tab_up_l_h").removeClass("tab_up_l");
		$(this).children().children().addClass("tab_up_r_h").removeClass("tab_up_r");
		$(this).siblings().children().addClass("tab_up_l").removeClass("tab_up_l_h");
		$(this).siblings().children().children().addClass("tab_up_r").removeClass("tab_up_r_h");
	});
	$("#zzjb").click(function(){
		$("#xmj,#grj").hide();
		$("#zzj").show();
		$(this).children().addClass("tab_up_l_h").removeClass("tab_up_l");
		$(this).children().children().addClass("tab_up_r_h").removeClass("tab_up_r");
		$(this).siblings().children().addClass("tab_up_l").removeClass("tab_up_l_h");
		$(this).siblings().children().children().addClass("tab_up_r").removeClass("tab_up_r_h");
	});
	$("#uploadhide").click(function(){
		$(this).parent().parent().hide();
	});
	$(".uploadb").click(function(){
		$("#uploaddiv").show()
		$("#uploaddiv").css({"top":$(this).offset().top,"left":$(this).offset().left+$(this).outerWidth()});
		$("#uploadf").focus();
		obj=$(this).prev();
	});
	loadData('selProvance', 'selCity', 'selArea');
	loadData('selProvance2', 'selCity2', 'selArea2');
	loadData('selProvance3', 'selCity3', 'selArea3');
});
</script>
</head>
<body>
<div class="top">
	<div class="top_main"></div>
</div>
<div class="mid">
	<div class="mid_left left"></div>
	<div class="mid_main left">
		<include file="./Tpl/Home/Public/menu.html" />
		<div class="mid_up center">
			<div class="wind">
				<div class="title">资料上传</div>
				<div class="mid_up_1">
						<ul class="mid_up_ul left">
							<li class="mid_up_li left" id="grjb"><a href="javascript:void(0);" class="tab_up_l_h"><span class="tab_up_r_h">个人奖</span></a></li>
							<li class="mid_up_li left" id="zzjb"><a href="javascript:void(0);" class="tab_up_l"><span class="tab_up_r">组织奖</span></a></li>
							<li class="mid_up_li left" id="xmjb"><a href="javascript:void(0);" class="tab_up_l"><span class="tab_up_r">项目奖</span></a></li>
						</ul>
					<div id="info" style="float:left;"></div><div id="result" style="float:left;"></div>
					<div style="clear:both;"></div>
					<div class="j_main">
					<div style="border:1px solid #ccc;width:890px;" class="center j_d" id="grj">
					<form action="__URL__/insert" method="post" class="insertForm">
					<p><span class="field">所在省</span><select id="selProvance" name="PROVINCE" onchange="chgProvinces('selProvance','selCity','selArea')"><option></option></select>
					所在市<select id="selCity" name="CITY" onchange="chgCitys('selCity','selArea')"><option></option></select>
					<span style="display:none;">所在县/区<select id="selArea" name="AREA"><option></option></select></span></p>
					<p><span class="field">申报类别</span><input type="radio" name="SBLB" value="社会" datatype="*" errormsg="请选择申报类别" />社会 <input type="radio" name="SBLB" value="组织" />组织</p>
					<p><span class="field">姓名</span><input type="text" name="XM" datatype="*" nullmsg="请输入姓名" class="text_i" /></p>
					<p><span class="field">性别</span><input type="radio" value="男" name="XB" datatype="*" nullmsg="请选择性别" />男 <input type="radio" value="女" name="XB">女</p>
					<p><span class="field">民族</span><input type="text" name="MZ" datatype="*" nullmsg="请输入民族" class="text_i" /></p>
					<p><span class="field">生日</span><input type="text" name="SR" onclick="SelectDate(this,'yyyy-MM-dd')" datatype="*" nullmsg="请输入生日" class="text_i"/></p>
					<p><span class="field">政治面貌</span><input type="text" name="ZZMM" datatype="*" nullmsg="请输入政治面貌" class="text_i"/></p>
					<p><span class="field">文化程度</span><input type="text" name="WHCD" datatype="*" nullmsg="请输入文化程度" class="text_i"/></p>
					<p><span class="field">联系电话</span><input type="text" name="LXDH" datatype="*" nullmsg="请输入联系电话" class="text_i"/></p>
					<p><span class="field">电子邮箱</span><input type="text" name="DZYX" datatype="e" nullmsg="请输入电子邮箱" errormsg="电子邮箱格式不正确" class="text_i"/></p>
					<p><span class="field">所在志愿者组织</span><input type="text" name="SZZZ" datatype="*" nullmsg="请输入组织名称" class="text_i"/></p>
					<p><span class="field">所在单位</span><input type="text" name="SZDW" datatype="*" nullmsg="请输入所在单位" class="text_i"/></p>
					<p><span class="field">职务</span><input type="text" name="ZW" datatype="*" nullmsg="请输入职务" class="text_i"/></p>
					<p><span class="field">通讯地址</span><input type="text" name="TXDZ" datatype="*" nullmsg="请输入通讯地址" class="text_i"/></p>
					<p><span class="field">邮编</span><input type="text" name="YB" datatype="p" nullmsg="请输入邮编" errormsg="邮编格式不正确" class="text_i"/></p>
					<p><span class="field">服务项目</span><input type="text" name="FWXM" datatype="*" nullmsg="请输入服务项目" class="text_i"/></p>
					<p><span class="field">起始时间</span><input type="text" name="QSSJ" onclick="SelectDate(this,'yyyy-MM-dd')" datatype="*" nullmsg="请输入起始日期" class="text_i"/></p>
					<p><span class="field">座右铭</span><input type="text" name="ZYM" datatype="*" nullmsg="请输入座右铭" class="text_i"/></p>
					<p><span class="field">个人简介</span><input type="text" name="GRJJ" datatype="*" nullmsg="请输入个人简介" class="text_i"/></p>
					<p><span class="field">视频地址</span><input type="text" name="SPDZ" class="text_i" /></p>
					<p><span class="field">事迹材料</span><input type="text" name="SJCL" /><input type="button" value="上传事迹材料" class="uploadb text_i"></p>
					<p><span class="field">照片</span><input type="text" name="ZP" /><input type="button" value="上传照片" class="uploadb text_i"></p>
					<p style="text-align:center"><input type="submit" class="submit" value="" /><input type="hidden" name="action" value="grj"/></p>
					</form>
					</div>
					<div style="border:1px solid #ccc;display:none;width:890px;" class="center j_d" id="zzj">
					<form action="__URL__/insert" method="post" class="insertForm">
					<p><span class="field">所在省</span><select id="selProvance2" name="PROVINCE" onchange="chgProvinces('selProvance2','selCity2','selArea2')"><option></option></select>
					所在市<select id="selCity2" name="CITY" onchange="chgCitys('selCity2','selArea2')"><option></option></select>
					<span style="display:none;">所在县/区<select id="selArea2" name="AREA"><option></option></select></span></p>
					<p><span class="field">申报类别</span><input type="radio" name="SBLB" value="社会" datatype="*" nullmsg="请选择申报类别"/>社会 <input type="radio" name="SBLB" value="组织" />组织</p>
					<p><span class="field">组织名称</span><input type="text" name="ZZMC" datatype="*" nullmsg="请输入组织名称" class="text_i"/></p>
					<p><span class="field">成立时间</span><input type="text" name="CLSJ" onclick="SelectDate(this,'yyyy-MM-dd')" datatype="*" nullmsg="请输入成立时间" class="text_i"/></p>
					<p><span class="field">人数</span><input type="text" name="RS" datatype="*" nullmsg="请输入人数" class="text_i"/></p>
					<p><span class="field">服务内容</span><input type="text" name="FWNR" datatype="*" nullmsg="请输入服务内容" class="text_i"/></p>
					<p><span class="field">负责人</span><input type="text" name="FZR" datatype="*" nullmsg="请输入负责人" class="text_i"/></p>
					<p><span class="field">性别</span><input type="radio" value="男" name="XB" datatype="*" nullmsg="请选择性别"/>男 <input type="radio" value="女" name="XB">女</p>
					<p><span class="field">职务</span><input type="text" name="ZW" datatype="*" nullmsg="请输入职务" class="text_i"/></p>
					<p><span class="field">通讯地址</span><input type="text" name="TXDZ" datatype="*" nullmsg="请输入通讯地址" class="text_i"/></p>
					<p><span class="field">邮编</span><input type="text" name="YB" datatype="*" nullmsg="请输入邮编" class="text_i"/></p>
					<p><span class="field">联系电话</span><input type="text" name="LXDH" datatype="*" nullmsg="请输入联系电话" class="text_i"/></p>
					<p><span class="field">电子邮箱</span><input type="text" name="DZYX" datatype="e" nullmsg="请输入电子邮箱" errormsg="电子邮箱格式不正确" class="text_i"/></p>
					<p><span class="field">主要事迹</span><input type="text" name="ZYSJ" datatype="*" nullmsg="请输入主要事迹" class="text_i"/></p>
					<p><span class="field">视频地址</span><input type="text" name="SPDZ" class="text_i" /></p>
					<p><span class="field">事迹材料</span><input type="text" name="SJCL" /><input type="button" value="上传事迹材料" class="uploadb text_i"></p>
					<p style="text-align:center"><input type="submit" class="submit" value="" /><input type="hidden" name="action" value="zzj"/></p>
					</form>
					</div>
					<div style="border:1px solid #ccc;display:none;width:890px;" class="center j_d" id="xmj">
					<form action="__URL__/insert" method="post" class="insertForm">
					<p><span class="field">所在省</span><select id="selProvance3" name="PROVINCE" onchange="chgProvinces('selProvance3','selCity3','selArea3')"><option></option></select>
					所在市<select id="selCity3" name="CITY" onchange="chgCitys('selCity3','selArea3')"><option></option></select>
					<span style="display:none;">所在县/区<select id="selArea3" name="AREA"><option></option></select></span></p>
					<p><span class="field">申报类别</span><input type="radio" name="SBLB" value="社会" datatype="*" nullmsg="请选择申报类别"/>社会 <input type="radio" name="SBLB" value="组织" />组织</p>
					<p><span class="field">项目名称</span><input type="text" name="XMMC" datatype="*" nullmsg="请输入项目名称" class="text_i"/></p>
					<p><span class="field">主管单位</span><input type="text" name="ZGDW" datatype="*" nullmsg="请输入主管单位" class="text_i"/></p>
					<p><span class="field">项目执行时间</span><input type="text" name="ZXSJ" onclick="SelectDate(this,'yyyy-MM-dd')" datatype="*" nullmsg="请输入项目执行时间" class="text_i"/></p>
					<p><span class="field">参与人次</span><input type="text" name="CYRC" datatype="n" nullmsg="请输入参与人次" class="text_i"/></p>
					<p><span class="field">接受款物捐赠情况</span><input type="text" name="JZQK" datatype="*" nullmsg="请输入捐赠情况" class="text_i"/></p>
					<p><span class="field">负责人</span><input type="text" name="FZR" datatype="*" nullmsg="请输入负责人" class="text_i"/></p>
					<p><span class="field">性别</span><input type="radio" value="男" name="XB" datatype="*" nullmsg="请选择性别"/>男 <input type="radio" value="女" name="XB">女</p>
					<p><span class="field">年龄</span><input type="text" name="NL" datatype="n" nullmsg="请输入年龄" errormsg="请输入数字" class="text_i"/></p>
					<p><span class="field">通讯地址</span><input type="text" name="TXDZ" datatype="*" nullmsg="请输入通讯地址" class="text_i"/></p>
					<p><span class="field">邮编</span><input type="text" name="YB" datatype="p" nullmsg="请输入邮编" errormsg="邮编格式不正确" class="text_i"/></p>
					<p><span class="field">联系电话</span><input type="text" name="LXDH" datatype="*" nullmsg="请输入联系电话" class="text_i"/></p>
					<p><span class="field">电子邮箱</span><input type="text" name="DZYX" datatype="e" nullmsg="请输入电子邮箱" errormsg="电子邮箱格式不正确" class="text_i"/></p>
					<p><span class="field">工作情况</span><input type="text" name="GZQK" datatype="*" nullmsg="请输入工作情况" class="text_i"/></p>
					<p><span class="field">视频地址</span><input type="text" name="SPDZ" class="text_i"/></p>
					<p><span class="field">事迹材料</span><input type="text" name="SJCL" /><input type="button" value="上传事迹材料" class="uploadb text_i"></p>
					<p style="text-align:center"><input type="submit" class="submit" value="" /><input type="hidden" name="action" value="xmj"/></p>
					</form>
					</div>
					</div>
					<div id="uploaddiv" style="position:absolute;display:none;border:1px solid #ccc;padding:5px;background:#666;">
					<form action="__URL__/upload" method="post" enctype="multipart/form-data" name="uploadform" id="uploadform">
					<input type="button" id="uploadhide" value="关闭" /><br/>
					<input type="file" name="uploadf" id="uploadf" />
					<input type="submit" value="上传">
					</form>
					</div>
				</div>
			</div>
			<div class="clear"></div>
		</div>
	</div>
	<div class="mid_right left"></div>
	<div class="clear"></div>
</div>
<include file="./Tpl/Home/Public/bottom.html" />
</body>
</html>